package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Inbox"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Inbox implements Serializable {

    /** identifier field */
    private Long inid;

    /** persistent field */
    private String belongId;

    /** persistent field */
    private String addresseeName;

    /** persistent field */
    private String addresser;

    /** persistent field */
    private String title;

    /** persistent field */
    private String content;

    /** persistent field */
    private String createDate;

    /** nullable persistent field */
    private String assoId;

    /** persistent field */
    private String isread;

    /** persistent field */
    private String isdel;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public Inbox(String belongId, String addresseeName, String addresser, String title, String content, String createDate, String assoId, String isread, String isdel, String remark) {
        this.belongId = belongId;
        this.addresseeName = addresseeName;
        this.addresser = addresser;
        this.title = title;
        this.content = content;
        this.createDate = createDate;
        this.assoId = assoId;
        this.isread = isread;
        this.isdel = isdel;
        this.remark = remark;
    }

    /** default constructor */
    public Inbox() {
    }

    /** minimal constructor */
    public Inbox(String belongId, String addresseeName, String addresser, String title, String content, String createDate, String isread, String isdel) {
        this.belongId = belongId;
        this.addresseeName = addresseeName;
        this.addresser = addresser;
        this.title = title;
        this.content = content;
        this.createDate = createDate;
        this.isread = isread;
        this.isdel = isdel;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="InID"
     *             unsaved-value="0"
     *         
     */
    public Long getInid() {
        return this.inid;
    }

    public void setInid(Long inid) {
        this.inid = inid;
    }

    /** 
     *            @hibernate.property
     *             column="BelongID"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getBelongId() {
        return this.belongId;
    }

    public void setBelongId(String belongId) {
        this.belongId = belongId;
    }

    /** 
     *            @hibernate.property
     *             column="AddresseeName"
     *             length="500"
     *             not-null="true"
     *         
     */
    public String getAddresseeName() {
        return this.addresseeName;
    }

    public void setAddresseeName(String addresseeName) {
        this.addresseeName = addresseeName;
    }

    /** 
     *            @hibernate.property
     *             column="Addresser"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getAddresser() {
        return this.addresser;
    }

    public void setAddresser(String addresser) {
        this.addresser = addresser;
    }

    /** 
     *            @hibernate.property
     *             column="Title"
     *             length="500"
     *             not-null="true"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="Content"
     *             length="2147483647"
     *             not-null="true"
     *         
     */
    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *             not-null="true"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="AssoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    /** 
     *            @hibernate.property
     *             column="IsRead"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getIsread() {
        return this.isread;
    }

    public void setIsread(String isread) {
        this.isread = isread;
    }

    /** 
     *            @hibernate.property
     *             column="IsDel"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getIsdel() {
        return this.isdel;
    }

    public void setIsdel(String isdel) {
        this.isdel = isdel;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("inid", getInid())
            .toString();
    }

}
